<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddIndexStepIdInTaskTable extends AbstractMigration
{
    public function up()
    {
        $this->table('task')
            ->addIndex(['step_id'], ['type' => 'normal', 'name' => 'idx_task_step_id'])
            ->save();

    }

    public function down()
    {
        $this->table('task')->removeIndexByName('idx_task_step_id')->save();
    }
}
